#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include"water_temperature_curve.h"
#include"connect_setup.h"
#include"mysqlite.h"
#include<QDateTime>
#include<QSqlQueryModel>
#include"random_temperature.h"
#include<QThread>

QT_BEGIN_NAMESPACE
namespace Ui { class MainWindow; }
QT_END_NAMESPACE

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    MainWindow(QWidget *parent = nullptr);
    ~MainWindow();
    void set_model();//设置数据库模型视图

public slots:
    void set_pushbutton_start(int);
    void send_message();//发送消息
    void receive_message();//接收消息
    void send_random_temperature();//发送随机温度
    void receive_socket_message(QString);
signals:

private:
    Ui::MainWindow *ui;
    MySQLite* mysqlite;
    QSqlQueryModel* model;
    //Water_Temperature_Curve* WTC;
};
#endif // MAINWINDOW_H
